package main

import (
	"fmt"
)

type Base struct {
	id string
}

func (base *Base) Id() string {
	return base.id
}

func (base *Base) SetId(id string) {
	base.id=id
}

type Person struct {
	Base
	FirstName string
	LastName string
}

type Employee struct {
	Person
	Salary float64
}

func main() {
	employee:=Employee{Person{FirstName:"Jack", LastName:"Ma"}, 1000000}
	employee.SetId("01234567")
	fmt.Println(employee.Id())
}
